gtk4.git
8 years agopaned: Remove gadget
Timm Bäder [Fri, 5 May 2017 08:20:58 +0000 (10:20 +0200)]
paned: Remove gadget

8 years agocombobox: Remove gadget
Timm Bäder [Fri, 5 May 2017 07:39:15 +0000 (09:39 +0200)]
combobox: Remove gadget

8 years agowidget: Add private get_border_allocation
Timm Bäder [Fri, 5 May 2017 10:54:24 +0000 (12:54 +0200)]
widget: Add private get_border_allocation

8 years agoflowbox: Remove gadgets
Timm Bäder [Fri, 5 May 2017 07:27:06 +0000 (09:27 +0200)]
flowbox: Remove gadgets

8 years agoviewport: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:59:04 +0000 (21:59 +0200)]
viewport: Remove gadget

8 years agoscrolledwindow: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:50:51 +0000 (21:50 +0200)]
scrolledwindow: Remove gadget

8 years agobox: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:45:06 +0000 (21:45 +0200)]
box: Remove gadget

8 years agobox: Remove gadget accessor
Timm Bäder [Thu, 4 May 2017 19:43:03 +0000 (21:43 +0200)]
box: Remove gadget accessor

8 years agoactionbar: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:42:42 +0000 (21:42 +0200)]
actionbar: Remove gadget

8 years agobuttonbox: Don't use the parent gadget
Timm Bäder [Thu, 4 May 2017 19:42:05 +0000 (21:42 +0200)]
buttonbox: Don't use the parent gadget

8 years agoseparatortoolitem: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:08:08 +0000 (21:08 +0200)]
separatortoolitem: Remove gadget

8 years agomenubar: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:01:03 +0000 (21:01 +0200)]
menubar: Remove gadget

8 years agofontchooserwidgets: Spinbuttons are no entries
Timm Bäder [Thu, 4 May 2017 18:49:27 +0000 (20:49 +0200)]
fontchooserwidgets: Spinbuttons are no entries

8 years agospinbutton demo: Spinbuttons are no Entries
Timm Bäder [Thu, 4 May 2017 18:49:05 +0000 (20:49 +0200)]
spinbutton demo: Spinbuttons are no Entries

8 years agospinbutton: Add text property
Timm Bäder [Thu, 4 May 2017 18:48:50 +0000 (20:48 +0200)]
spinbutton: Add text property

8 years agoEntry: Remove gadget
Timm Bäder [Thu, 4 May 2017 16:58:47 +0000 (18:58 +0200)]
Entry: Remove gadget

8 years agotoolbar: Remove gadget
Timm Bäder [Thu, 4 May 2017 16:33:54 +0000 (18:33 +0200)]
toolbar: Remove gadget

8 years agocellrendererspin: Include gtkentry.h
Timm Bäder [Thu, 4 May 2017 16:33:27 +0000 (18:33 +0200)]
cellrendererspin: Include gtkentry.h

The symbols aren't in gtkspinbutton.h anymore.

8 years agoflowbox: Initialize allocation
Timm Bäder [Thu, 4 May 2017 16:32:45 +0000 (18:32 +0200)]
flowbox: Initialize allocation

8 years agospinbuttonaccessible: Inherit from GtkWidgetAccessible
Timm Bäder [Thu, 4 May 2017 16:32:22 +0000 (18:32 +0200)]
spinbuttonaccessible: Inherit from GtkWidgetAccessible

8 years agospinbutton: Remove call to GtkSpinButton API
Timm Bäder [Thu, 4 May 2017 16:24:37 +0000 (18:24 +0200)]
spinbutton: Remove call to GtkSpinButton API

The condition will never be true since spinbuttons aren't entries
anymore.

8 years agospinbutton: Inherit from GtkWidget
Timm Bäder [Thu, 4 May 2017 16:31:41 +0000 (18:31 +0200)]
spinbutton: Inherit from GtkWidget

Use a box, an entry and the current 2 buttons.
Remaining problems: Entry sizing and activation.

8 years agomodelbutton: Remove last gadget usages
Timm Bäder [Thu, 4 May 2017 16:26:38 +0000 (18:26 +0200)]
modelbutton: Remove last gadget usages

And fix the clip calculation

8 years agolabel: Fix clipping
Timm Bäder [Thu, 4 May 2017 15:32:02 +0000 (17:32 +0200)]
label: Fix clipping

We were using an uninitialized value here.

8 years agowidget-factory: Remove invisible-char usage for spin buttons
Timm Bäder [Thu, 4 May 2017 15:15:38 +0000 (17:15 +0200)]
widget-factory: Remove invisible-char usage for spin buttons

8 years agoframe: Remove empty finalize implementation
Timm Bäder [Thu, 4 May 2017 14:32:43 +0000 (16:32 +0200)]
frame: Remove empty finalize implementation

8 years agoseparator: Remove gadget
Timm Bäder [Thu, 4 May 2017 14:22:35 +0000 (16:22 +0200)]
separator: Remove gadget

8 years agolabel: Remove gadget
Timm Bäder [Thu, 4 May 2017 14:14:47 +0000 (16:14 +0200)]
label: Remove gadget

8 years agospinner: Set clip
Timm Bäder [Thu, 4 May 2017 14:09:13 +0000 (16:09 +0200)]
spinner: Set clip

8 years agoframe: Remove gadget
Timm Bäder [Thu, 4 May 2017 14:09:00 +0000 (16:09 +0200)]
frame: Remove gadget

8 years agowidget: Add private gtk_widget_get_content_allocation
Timm Bäder [Thu, 4 May 2017 14:04:49 +0000 (16:04 +0200)]
widget: Add private gtk_widget_get_content_allocation

8 years agostackcombo: Set clip
Timm Bäder [Thu, 4 May 2017 13:36:06 +0000 (15:36 +0200)]
stackcombo: Set clip

8 years agomodelbutton: Stop using the button's gadget
Timm Bäder [Thu, 4 May 2017 13:35:47 +0000 (15:35 +0200)]
modelbutton: Stop using the button's gadget

8 years agoset clip of more widgets
Timm Bäder [Thu, 4 May 2017 09:27:45 +0000 (11:27 +0200)]
set clip of more widgets

8 years agoimage: Remove gadget
Timm Bäder [Thu, 4 May 2017 08:23:38 +0000 (10:23 +0200)]
image: Remove gadget

8 years agocolorswatch: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 07:45:05 +0000 (09:45 +0200)]
colorswatch: Remove gadget usage

8 years agoicon: Stop calling gtk_widget_set_allocation
Timm Bäder [Thu, 4 May 2017 07:37:05 +0000 (09:37 +0200)]
icon: Stop calling gtk_widget_set_allocation

The allocation passed to size-allocate is the content allocation so this
call doesn't make sense anymore.

8 years agobutton: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 07:36:49 +0000 (09:36 +0200)]
button: Remove gadget usage

Can't remove it entirely yet, since GtkCheckButton still uses it

8 years agofontbutton: Call the css node "fontbutton"
Timm Bäder [Thu, 4 May 2017 07:36:22 +0000 (09:36 +0200)]
fontbutton: Call the css node "fontbutton"

Otherwise the default looks like a button inside a button.

8 years agomenuitem: Stop using gadget
Timm Bäder [Thu, 4 May 2017 07:16:49 +0000 (09:16 +0200)]
menuitem: Stop using gadget

Once again, we can't really delete it yet since other widgets use it...

8 years agocheckbutton: Don't use parent button's gadget
Timm Bäder [Thu, 4 May 2017 07:03:04 +0000 (09:03 +0200)]
checkbutton: Don't use parent button's gadget

check buttons showing their indicator still use the internal boxgadget
and have therefore the wrong size, but this gets us closer.

8 years agoexpander: Remove gadget
Timm Bäder [Thu, 4 May 2017 06:28:31 +0000 (08:28 +0200)]
expander: Remove gadget

8 years agogizmo: Remove gadget
Timm Bäder [Thu, 4 May 2017 06:13:07 +0000 (08:13 +0200)]
gizmo: Remove gadget

8 years agoprogressbar: Remove gadget
Timm Bäder [Thu, 4 May 2017 06:09:44 +0000 (08:09 +0200)]
progressbar: Remove gadget

8 years agorange: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 06:05:11 +0000 (08:05 +0200)]
range: Remove gadget usage

8 years agogrid: Remove gadget
Timm Bäder [Thu, 4 May 2017 05:56:15 +0000 (07:56 +0200)]
grid: Remove gadget

8 years agobox: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 05:52:14 +0000 (07:52 +0200)]
box: Remove gadget usage

Keep the gadget member in the private struct around for now so
GtkButtonBox doesn't break terribly.

8 years agowidget: Union clip with allocation and box shadow size
Timm Bäder [Thu, 4 May 2017 05:40:42 +0000 (07:40 +0200)]
widget: Union clip with allocation and box shadow size

8 years agoswitch: Remove gadget
Timm Bäder [Wed, 3 May 2017 20:22:49 +0000 (22:22 +0200)]
switch: Remove gadget

8 years agolistbox: Remove gadgets
Timm Bäder [Wed, 3 May 2017 20:16:47 +0000 (22:16 +0200)]
listbox: Remove gadgets

8 years agowidget: Pass content allocation to size-allocate vfunc
Timm Bäder [Wed, 3 May 2017 17:45:33 +0000 (19:45 +0200)]
widget: Pass content allocation to size-allocate vfunc

8 years agoheaderbar: Remove gadget
Timm Bäder [Wed, 3 May 2017 17:44:52 +0000 (19:44 +0200)]
headerbar: Remove gadget

both drawing and sizing are done through GtkWidget now.

8 years agosizerequest: Fix min size with widget margins
Timm Bäder [Thu, 18 May 2017 10:16:35 +0000 (12:16 +0200)]
sizerequest: Fix min size with widget margins

8 years agosizerequest: Stop checking orientation in query_size_for_orientation
Timm Bäder [Thu, 18 May 2017 08:11:54 +0000 (10:11 +0200)]
sizerequest: Stop checking orientation in query_size_for_orientation

Since we have ->measure now, we can implement this code more elegantly.

8 years agosizerequest: Remove for_size parameter from push_recursion_check
Timm Bäder [Thu, 18 May 2017 07:43:32 +0000 (09:43 +0200)]
sizerequest: Remove for_size parameter from push_recursion_check

It's not needed anymore after also fixing the warning message to not
mention the old get_preferred* functions.

8 years agosizerequest: Make sure widget sizes stay positive
Timm Bäder [Mon, 15 May 2017 12:38:22 +0000 (14:38 +0200)]
sizerequest: Make sure widget sizes stay positive

They can otherwise become negative, e.g. when large negative css
margins are applied.

8 years agosizerequest: Make size groups "work"
Timm Bäder [Sat, 6 May 2017 12:05:30 +0000 (14:05 +0200)]
sizerequest: Make size groups "work"

We have to query the css margin/border/padding values for all widgets
in the size group.

8 years agosizerequest: Move css handling to gtk_widget_measure
Timm Bäder [Sat, 6 May 2017 08:02:03 +0000 (10:02 +0200)]
sizerequest: Move css handling to gtk_widget_measure

We need to adjust the passed for_size to fit into the content allocation
of the widget.
That also means that we can't call gtk_widget_measure(widget) inside
gtk_widget_measure(widget) since now the for_size will be adjusted
twice.

8 years agosizerequest: Honor css min size
Timm Bäder [Wed, 3 May 2017 17:23:35 +0000 (19:23 +0200)]
sizerequest: Honor css min size

8 years agosizerequest: Fix indentation
Timm Bäder [Wed, 3 May 2017 16:50:19 +0000 (18:50 +0200)]
sizerequest: Fix indentation

8 years agoscrolledwindow: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:43:47 +0000 (11:43 +0200)]
scrolledwindow: Remove css box drawing

8 years agopaned: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:37:31 +0000 (11:37 +0200)]
paned: Remove css box drawing

8 years agoseparator: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:37:20 +0000 (11:37 +0200)]
separator: Remove css box drawing

8 years agostack: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:33:37 +0000 (11:33 +0200)]
stack: Remove css box drawing

8 years agocombobox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:31:18 +0000 (11:31 +0200)]
combobox: Remove css box drawing

8 years agonotebook: Fix crash when dragging a tab
Timm Bäder [Wed, 3 May 2017 09:21:29 +0000 (11:21 +0200)]
notebook: Fix crash when dragging a tab

gtk_gesture_get_last_event can return NULL, so guard against that.

8 years agotoolbar: Remove css box rendering
Timm Bäder [Wed, 3 May 2017 09:19:23 +0000 (11:19 +0200)]
toolbar: Remove css box rendering

8 years agoactionbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:16:38 +0000 (11:16 +0200)]
actionbar: Remove css box drawing

8 years agoRemove now useless snapshot implementations
Timm Bäder [Wed, 3 May 2017 09:14:28 +0000 (11:14 +0200)]
Remove now useless snapshot implementations

8 years agowidget: Add default snapshot implementation
Timm Bäder [Wed, 3 May 2017 09:11:20 +0000 (11:11 +0200)]
widget: Add default snapshot implementation

gtk_widget_snapshot will snapshot the css box, the default snapshot
vfunc now gtk_widget_snapshot_child's all child widgets.

8 years agocontainer: Remove snapshot and draw implementations
Timm Bäder [Wed, 3 May 2017 09:11:06 +0000 (11:11 +0200)]
container: Remove snapshot and draw implementations

8 years agobbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:52:37 +0000 (10:52 +0200)]
bbox: Remove css box drawing

Whether we are in expand mode or not shouldn't really make a difference
for rendering anyway.

8 years agoimage: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:44:18 +0000 (10:44 +0200)]
image: Remove css box drawing

8 years agoframe: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:34:30 +0000 (10:34 +0200)]
frame: Remove css box drawing

8 years agoswitch: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:31:24 +0000 (10:31 +0200)]
switch: Remove css box drawing

8 years agoflowbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:29:02 +0000 (10:29 +0200)]
flowbox: Remove css box drawing

8 years agolistbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:24:55 +0000 (10:24 +0200)]
listbox: Remove css box drawing

8 years agoheaderbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:24:43 +0000 (10:24 +0200)]
headerbar: Remove css box drawing

8 years agowidget: Draw focus outline
Timm Bäder [Wed, 3 May 2017 08:24:32 +0000 (10:24 +0200)]
widget: Draw focus outline

8 years agoprogressbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:19:29 +0000 (10:19 +0200)]
progressbar: Remove css box drawing

8 years agolabel: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:19:17 +0000 (10:19 +0200)]
label: Remove css box drawing

8 years agogtkgrid: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:55 +0000 (10:18 +0200)]
gtkgrid: Remove css box drawing

8 years agogizmo: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:41 +0000 (10:18 +0200)]
gizmo: Remove css box drawing

8 years agobox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:28 +0000 (10:18 +0200)]
box: Remove css box drawing

8 years agoWidget: Disable css box drawing for GtkWindow
Timm Bäder [Wed, 3 May 2017 08:17:58 +0000 (10:17 +0200)]
Widget: Disable css box drawing for GtkWindow

Until we know how we solve that.

8 years agobutton: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:03:59 +0000 (10:03 +0200)]
button: Remove css box drawing

8 years agowidget: Draw background and border for every widget
Timm Bäder [Wed, 3 May 2017 08:03:24 +0000 (10:03 +0200)]
widget: Draw background and border for every widget

8 years agoBump version
Matthias Clasen [Thu, 20 Jul 2017 01:18:57 +0000 (21:18 -0400)]
Bump version

8 years agoAvoid compiler warnings
Matthias Clasen [Thu, 20 Jul 2017 00:45:52 +0000 (20:45 -0400)]
Avoid compiler warnings

Initialize these variables, so gcc doesn't complain.

8 years ago3.91.1
Matthias Clasen [Wed, 19 Jul 2017 13:16:13 +0000 (09:16 -0400)]
3.91.1

8 years agoa11y tests: Update expected results
Matthias Clasen [Wed, 19 Jul 2017 19:45:51 +0000 (15:45 -0400)]
a11y tests: Update expected results

The license urls in the about dialog changed.

8 years agotestsuite: Adjust gestures tests to gtk4 event delivery
Carlos Garnacho [Wed, 19 Jul 2017 18:57:04 +0000 (20:57 +0200)]
testsuite: Adjust gestures tests to gtk4 event delivery

Events that get to gtk_main_do_event() have the toplevel GdkWindow
as event->any.window. Also, ensure that coordinates fall within
sensible places of the windows, since those might have shadows,
headerbars and whatnot on wayland.

8 years agogtkwindow: Free pointer foci on dispose
Carlos Garnacho [Wed, 19 Jul 2017 16:13:47 +0000 (18:13 +0200)]
gtkwindow: Free pointer foci on dispose

That means the whole hierarchy is getting destroyed, leaving those
behind incurs not only in a leak, but also on weak refs (and unintended
repick) to happen in the wrong moment.

8 years agogtkwindow: Do not leak GtkPointerFocus
Carlos Garnacho [Wed, 19 Jul 2017 16:12:53 +0000 (18:12 +0200)]
gtkwindow: Do not leak GtkPointerFocus

gtk_window_add_pointer_focus() increments the refcount, which means
the caller should be dropping its own.

8 years agoFix compile error in imquartz.c due to API change in GtkIMContext.
John Ralls [Tue, 18 Jul 2017 21:42:26 +0000 (14:42 -0700)]
Fix compile error in imquartz.c due to API change in GtkIMContext.

8 years agoFix MacOS compiler warnings.
John Ralls [Tue, 18 Jul 2017 21:47:25 +0000 (14:47 -0700)]
Fix MacOS compiler warnings.

8 years agoCopy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c
John Ralls [Tue, 18 Jul 2017 18:15:12 +0000 (11:15 -0700)]
Copy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c

Fixes bug 784323.

8 years agoquartz: Implement gtk_clipboard_get_selection
Philip Chimento [Thu, 3 Nov 2016 06:37:29 +0000 (23:37 -0700)]
quartz: Implement gtk_clipboard_get_selection

This function is trivial and can be copied from the X11 implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=772281

8 years agomeson: Add missing source file
Emmanuele Bassi [Tue, 18 Jul 2017 21:50:57 +0000 (22:50 +0100)]
meson: Add missing source file

The newly added gtkfilechoosererrorstack.c source needs to be included
in the Meson build as well as the Autotools one.

8 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 18 Jul 2017 20:03:29 +0000 (22:03 +0200)]
Update POTFILES.in